{% load static %}
<!DOCTYPE html>
<link rel="stylesheet" type="text/css" href="{% static 'data_record/style.css' %}" />

{% if latest_question_list %}
<ul>
    {% for record in latest_question_list %}
    <br>
    <li><a href="{% url 'data_record:detail' record.id %}">{{ record}}</a></li>
    {% endfor %}

</ul>
{% else %}
<p>No records are available.</p>
{% endif %}

<div class="pagination">
    <span class="step-links">
        {% if page_obj.has_previous %}
        <a href="?page=1">&laquo; first</a>
        <a href="?page={{ page_obj.previous_page_number }}">previous</a>
        {% endif %}

        <span class="current">
            Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}.
        </span>

        {% if page_obj.has_next %}
        <a href="?page={{ page_obj.next_page_number }}">next</a>
        <a href="?page={{ page_obj.paginator.num_pages }}">last &raquo;</a>
        {% endif %}
    </span>
</div>
